package com.example.login;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.example.login.fragment.HomeActivity;


public class SuccessActivity extends AppCompatActivity {

    Button btn_seerv;
    Button btn_seefg;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_success);
        btn_seefg = findViewById(R.id.btn_seefg);
        btn_seerv = findViewById(R.id.btn_seerv);

        btn_seerv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(SuccessActivity.this, "好的~正在前往RecyclerView页面", Toast.LENGTH_SHORT).show();
                Intent intent = new Intent();
                intent.setClass(SuccessActivity.this,RecycleViewActivity.class);
                startActivity(intent);
            }
        });
        btn_seefg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(SuccessActivity.this, "好的~正在前往Fragment页面", Toast.LENGTH_SHORT).show();
                Intent intent = new Intent();
                intent.setClass(SuccessActivity.this, HomeActivity.class);
                startActivity(intent);
            }
        });
    }

}